home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3006 < prev    next >
Encoding:
Text File  |  1996-08-05  |  960 b   |  45 lines

  1. Path: news.iag.net!news
  2. From: jatmon@iag.net (John R Buchan)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: sscanf problems
  5. Date: 25 Jan 1996 13:01:20 GMT
  6. Organization: Internet Access Group, Orlando, Florida
  7. Message-ID: <4e7uv0$8k2@news.iag.net>
  8. References: <4e4c2v$j2g@mathserv.mps.ohio-state.edu> <4e5i39$2e6@news.iag.net>
  9. NNTP-Posting-Host: pm1-orl11.iag.net
  10. X-Newsreader: WinVN 0.99.7
  11.  
  12. In article <4e5i39$2e6@news.iag.net>, jatmon@iag.net says...
  13. >
  14. >In article <4e4c2v$j2g@mathserv.mps.ohio-state.edu>, 
  15. >cmongold@magnus.acs.ohio-state.edu says...
  16. >>
  17. <snop>
  18. >>fp = fopen(input, "r");
  19. >
  20. >I assume you've left out the tests for the sake of brevity?
  21. >
  22. >if( fp != NULL)
  23. >   {
  24. >   /* handle the failed open */
  25. >   }
  26. >
  27. <snip>
  28.  
  29. !!!??  <:-0
  30.  
  31. Make that:
  32.  
  33. if( fp == NULL)
  34.    {
  35.    /* handle the failed open */
  36.    }
  37.  
  38.  
  39. Sorry.
  40.  
  41. -- 
  42. John R Buchan           -:|:-     Looking for that elusive FAQ?  ftp to:
  43. jatmon@mail.iag.net     -:|:-     rtfm.mit.edu /pub/usenet-by-group/....
  44.  
  45.